package com.rd.student.ruanjian.class1.duhang.New00;

public class Dog extends Animal {
    String putColor;

    public Dog(String name, String putColor) {
        super(name);
        this.putColor = putColor;
    }

    public String getPutColor() {
        return putColor;
    }

    public void setPutColor(String putColor) {
        this.putColor = putColor;
    }

    @Override
    public String toString() {
        return "小狗" +
                "名字叫" + name  +
                "皮毛是" + putColor;
    }

    @Override
    public void voice() {
        System.out.println(getName() + "叫一叫" );
    }


    @Override
    public void enjoy() {
        System.out.println(name + "摇尾巴");
    }
}
